﻿using System;
using System.Collections.Generic;

#if WINDOWS || MONO

#endif

namespace Inaction.Util
{
    public static class Sequence
    {
        public static Guid NewId
        {
            get
            {
                return Guid.NewGuid();
            }
        }

        public static decimal GuidValue()
        {
            decimal value = 0;
            var guid = Guid.NewGuid();
            var data = guid.ToByteArray();
            foreach (var b in data)
            {
                value *= 255;
                value += b;
            }
            return value;
        }
    }
}
